<?php
namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class UsersRechargeLimit extends Model
{
    protected $table = 'users_recharge_limit';

    protected $fillable = [
        'admin_id', 'user_id', 'recharge_rmb','total_recharge_rmb','flag'
    ];

    public function fromProfile()
    {
        return $this->belongsTo(UserProfile::class, 'user_id', 'user_id');
    }
}
